	
<div class="col-sm-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
				{{#bs-form formLayout=formLayout model=customerbusinessflowModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if detailEdit}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存' clickAction="detailSaveClick" detailSaveClick="detailSaveClick" clickActParams=customerbusinessflowInfo}}
							{{/ui/mix-button}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
			        {{/ui/mix-button}}
						{{else}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='返回'  clickAction="detailCancel" detailCancel="detailCancel"}}
			        {{/ui/mix-button}}
						{{/if}}
					</p>
				</div>
				<!-- 列表详细介绍 -->
				<div class="col-xs-12 nopadding-left">
					<div class="col-xs-12 nopadding-horizontal mt20">

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">预订人姓名：</span>
								{{#if detailEdit}}
									{{bs-form-element property="advName" class="inline-block form-input-group label-normal" controlType="advName" placeholder='预订人姓名(必填)'}}
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.advName}}</div>
								{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">预订人电话：</span>
								{{#if detailEdit}}
										{{bs-form-element property="advTel" class="inline-block form-input-group label-normal" controlType="advTel" placeholder='预订人电话(必填)'}}
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.advTel}}</div>
								{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">老人姓名：</span>
								{{#if detailEdit}}
										{{bs-form-element property="cusName" class="inline-block form-input-group label-normal" controlType="cusName" placeholder='老人姓名(必填)'}}
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.customer.name}}</div>
								{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">老人性别：</span><!--字典-->
								{{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="cusSex" property="cusSex" }}
										{{callbusi/dict-selector curDict=customerbusinessflowModel.cusSex groupCode=constants.sexType showName="必填" dictSelect="sexSelect" value=customerbusinessflowModel.cusSex preselected=false}}
									{{/bs-form-element}}
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.customer.sex.typename}}</div>
								{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">身份证号：</span>
	              {{#if detailEdit}}
	                {{bs-form-element property="cusCardCode" class="inline-block form-input-group label-normal" controlType="cusCardCode" placeholder='身份证号(必填)'}}
	              {{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.customer.cardCode}}</div>
	              {{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">老人籍贯：</span><!--字典-->
	                {{#if detailEdit}}
										{{#bs-form-element class="inline-block form-input-group" controlType="cusNative" property="cusNative" }}
											{{callbusi/dict-selector curDict=customerbusinessflowModel.cusNative groupCode=constants.nativePlace showName="必填" dictSelect="nativeSelect" value=customerbusinessflowModel.cusNative preselected=false}}
										{{/bs-form-element}}
	                {{else}}
	                  <div class="input-group-content">{{customerbusinessflowInfo.customer.customerNative.typename}}</div>
	                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">自理能力：</span><!--字典-->
	                {{#if detailEdit}}
										{{#bs-form-element class="inline-block form-input-group" controlType="cusCare" property="cusCare" }}
											{{callbusi/dict-selector curDict=customerbusinessflowModel.cusCare groupCode=constants.selfCareLevel showName="必填" dictSelect="abilitySelect" value=customerbusinessflowModel.cusCare preselected=false}}
										{{/bs-form-element}}
	                {{else}}
	                  <div class="input-group-content">{{customerbusinessflowInfo.customer.selfCareAbility.typename}}</div>
	                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">文化程度：</span><!--字典-->
	                {{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="cusEdu" property="cusEdu" }}
										{{callbusi/dict-selector curDict=customerbusinessflowModel.cusEdu groupCode=constants.educationLevel showName="必填" dictSelect="educationSelect" value=customerbusinessflowModel.cusEdu preselected=false}}
									{{/bs-form-element}}
	                {{else}}
	                  <div class="input-group-content">{{customerbusinessflowInfo.customer.educationLevel.typename}}</div>
	                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">入院日期：</span>
                {{#if detailEdit}}
								  {{ui/addon/bs-datetimepicker date=customerbusinessflowInfo.orderTime placeholder="入院日期(必填)" locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerbusinessflowInfo.orderTime show="dpShowAction" change="changeOrderInTimeAction" }}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.orderTime}}</div>
                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">预订床位：</span>
                {{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="orderBed"  property="orderBed" }}
										{{#power-select class="input-group-content" placeholder='床位名称(必填)' options=bedList  selected=defaultBed searchField="namePinyin"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectBed" ) as |bed|}}
											{{bed.name}}
										{{/power-select}}
									{{/bs-form-element}}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.orderBed.name}}</div>
                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">经办人：</span>
                {{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="orderStaff"  property="orderStaff" }}
										{{#power-select class="input-group-content" placeholder='经办人姓名(必填)' options=staffList  selected=defaultStaff searchField="namePinyin"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectStaff" ) as |staff|}}
											{{staff.name}}
										{{/power-select}}
									{{/bs-form-element}}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.orderStaff.name}}</div>
                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">保证金：</span>
                {{#if detailEdit}}
                    {{bs-form-element property="orderMoney" class="inline-block form-input-group label-normal" controlType="orderMoney" placeholder='保证金(必填)'}}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.orderMoney}}</div>
                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">预订办理日期：</span>
                {{#if detailEdit}}
									{{ui/addon/bs-datetimepicker date=customerbusinessflowInfo.orderDateTime placeholder="预订办理日期(必填)" locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerbusinessflowInfo.orderDateTime show="dpShowAction" change="changeOrderDateAction" }}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.orderDateTime}}</div>
                {{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-12">
							<div class="form-input-group">
								<span class="input-group-addon">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>
								{{#if detailEdit}}
									{{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=customerbusinessflowInfo.orderRemark placeholder='备注'}}
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.orderRemark}}</div>
								{{/if}}
							</div>
						</div>

					</div>
				</div>
				<!-- 列表详细介绍 -->
			</div>
{{/bs-form}}

		</div>
		<!-- /BOX-BODY -->
	</div>
</div>


{{#if showpopInvitePassModal}}
	{{#bs-modal body=false footer=false header=false}}
		{{#bs-modal-header}}
			<h3 class="modal-title">删除提示</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<h4 class="modal-title">是否删除该条记录？</h4>
		{{/bs-modal-body}}

		{{#bs-modal-footer as |footer|}}
			{{#bs-button action=(action "cancelPassSubmit" customerbusinessflowInfo) type="primary" disabled=prepaidDisabled}}确订{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
